﻿using System;
using System.Net;

namespace Reactor.ServiceGrid.Utility
{
    public interface IHttpClient : IObservable<int>
    {
        string UserAgent
        {
            get;
            set;
        }

        WebRequest CreateRequest(Uri uri);
        void InitializeRequest(WebRequest request);
        Uri GetRedirectedUri(Uri uri);

        byte[] DownloadData(Uri uri);
    }
}